const App = getApp()
Component({
  properties: {
    visible: Boolean, // 显示隐藏
    couponList:Array//优惠券信息
  },
  data:{
    isIphoneX:App.globalData.isIphoneX
  },
  methods: {
    // 关闭share
    closeShare() {
      this.setData({
        visible: false
      })
    },
    closeCoupon(){
      this.setData({
        visible: false
      })
      this.triggerEvent('closeCoupon',this.data.visible)
    }
  }
})